﻿
@{ var list = SocialVoting.Helpers.ThemeHelper.GetSelectedList(Request.Cookies["ThemeName"]);
}
@Html.Label("Theme")
@Html.DropDownList("Theme", (List<SelectListItem>)list)


<script type="text/javascript">
    $(function () {
        $('#Theme').change(function () {

            $.post('@Url.Action("Index", "Theme")', { theme: $(this).val() }, function (result) {
                $('body').html('');
                $('body').html(result);
            });
        });
     });
</script>